#include <helpers\math\vector3.h>

namespace DelGE
{
	namespace Helpers
	{
		namespace Math
		{
			Vector3 Vector3::Lerp(const Vector3& rVector0, const Vector3& rVector1, float fLerpAmount)
			{
				return rVector0 + (rVector1 - rVector0) * fLerpAmount;
			}

			Vector3::Vector3()
			{
				this->x = 0;
				this->y = 0;
				this->z = 0;
				this->w = 1;
			}

			Vector3::Vector3(float x, float y)
			{
				this->x = x;
				this->y = y;
				this->z = 0;
				this->w = 1;
			}

			Vector3::Vector3(float x, float y, float z)
			{
				this->x = x;
				this->y = y;
				this->z = z;
				this->w = 1;
			}

			Vector3::~Vector3()
			{
				this->x = this->y = this->z = 0;
				this->w = 1;
			}

			Vector3 Vector3::Zero()
			{
				return Vector3();
			}

			Vector3 Vector3::VectorFromAngle(float fAngle)
			{
				return Vector3(sin(MathHelper::DegreesToRadians(fAngle)),
							   cos(MathHelper::DegreesToRadians(fAngle)),
							   0);
			}

			
		}
	}
}